<!doctype html>
<html class="no-js">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="csrf-token" content="{{ csrf_token() }}">
        <meta name="viewport"
              content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
        <title>小马网-以信任促成交易</title>
        <link rel="stylesheet" type="text/css" href="../css/index.css"/>
        <link rel="stylesheet" type="text/css" href="../css/kiss.css"/>
        <link rel="stylesheet" type="text/css" href="../css/base.css">
        <link rel="stylesheet" type="text/css" href="../css/Apply.css" media="all">
        <link rel="shortcut icon" href="../img/icon/favicon.ico">
        <style type="text/css">
            .form {
                display: none
            }

            .form.on {
                display: block
            }

            #form-radio {
                margin: 15px 0 0 0
            }
        </style>
    </head>

    <body style="font-size: 14px;">
        <div id="page">
            @include('web.authentication.header')
            <div id="kiss_wrap">
                <div class="preview_contain">
                    <div class="form_hd">
                        免费提交初审成功，请等待审核。
                    </div>
                    <a href="/" style="font-size: 16px;margin-right: 10px;">返回首页</a> 
                    |
                    <a href="javascript:history.go(-1);" style="font-size: 16px;margin-left: 10px;">返回上一层</a>
                </div>
            </div>
        </div>
        <!-- 底部 -->
        @include('web.authentication.footer')
        <!-- 客服 -->
        @include('web.authentication.kefu')
    </body>
</html>
<script src="../js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/goTop.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/sheng-shi.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/www-class.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/verify.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    var POST_URL = "{{Route('gw')}}";
    var POST_URL1 = "{{Route('qiye')}}";
    var POST_SUCCESS = "{{Route('success')}}";
    $(function () {
        //获取表单所有input
        $(".error_st").css({"display": "none"})
        $(".kiss_fm_etip").css({"display": "none"})
        var fields = $("#apply :input");

        $("#apply_btn").on("click", function () {
            var verify = regular.charge(fields);
            if (verify) {
                $.post(POST_URL, $('#apply').serialize(), function (data) {
                    if (data == 1) {
                        alert("提交成功");
                        location.href="{{route('success')}}"
                    } else {
                        alert("提交失败,请重试！！！");
                    }
                });
            }
        });
        // 注册事件
        $(fields).on("blur", function () {
            regular.charge(fields);
        });

        var fields1 = $("#apply1 :input");
        $("#apply_btn1").on("click", function () {
            var xx = regular.charge(fields1);
            if (xx) {
                $.post(POST_URL1, $('#apply1').serialize(), function (data) {
                    if (data == 1) {
                        alert("提交成功");
                        location.href="{{route('success')}}"
                    } else {
                        alert("提交失败,请重试！！！");
                    }
                });
            }
        });
        // 注册事件
        $(fields1).on("blur", function () {
            regular.charge(fields);
        });
        $("#form-radio input").on("click", function () {
            var _this = $(this);
            $("#form-box .form").removeClass("on");
            $("#" + _this.val()).addClass("on")
        })
    });
</script>
